// import { FC } from "react";
// //仓库
// import store from "./store";
// import { Provider } from "react-redux";

// import { AppProvider } from "@shopify/polaris";

// import en from "@shopify/polaris/locales/en.json"; //英
// import zh from "@shopify/polaris/locales/zh-CN.json"; //中
// import "@shopify/polaris/build/esm/styles.css";

// // - 国际化

// // - 路由
// import { RouterProvider } from "react-router-dom";
// import routes from "./router";
// import { useRoutes } from "react-router-dom";

// // 初始化样式
// // import { GlobalStyle } from "./assets/css/reset";

// interface Props {}
// const Dink: FC<Props> = () => {
//   return (
//     <Provider store={store}>
//       <AppProvider i18n={zh}>
//         {/* <GlobalStyle /> */}
//         <RouterProvider router={routes}></RouterProvider>·
//       </AppProvider>
//     </Provider>
//   );
// };

// export default Dink;
import { FC } from "react";

// 初始化样式
import { GlobalStyle } from "./assets/css/reset";
//仓库
import store from "./store";
import { Provider } from "react-redux";

import { AppProvider } from "@shopify/polaris";

// import en from "@shopify/polaris/locales/en.json"; //英
import zh from "@shopify/polaris/locales/zh-CN.json"; //中
import "@shopify/polaris/build/esm/styles.css";

// - 国际化

// - 路由
import { RouterProvider } from "react-router-dom";
import routes from "./router";
// import { useRoutes } from "react-router-dom";

// 初始化样式
// import { GlobalStyle } from "./assets/css/reset";



interface Props {}
const Dink: FC<Props> = () => {
  return (
    <Provider store={store}>
      <AppProvider i18n={zh}>
        <GlobalStyle />
        <RouterProvider router={routes}></RouterProvider>·
      </AppProvider>
    </Provider>
  );
};

export default Dink;
